@extends('layout.app')

@section('content')

    <div class="box-body">

        <table id="rowed3"></table>
        <div id="prowed3"></div>

    </div>

<script>

$(document).ready(function() {

     var data = {
            url :"/config/wechat",
            colNames: ['_id','WECHAT_KEY','NOTIFY_URL', 'APPID', 'MCH_ID'],
            colModel: [{
                name: '_id',
                hidden: true,
                key: true,
                },{
                name: 'WECHAT_KEY',
                sortable: false,
                editable: true,
                editrules: {
                    required: true,
                },
        	key: true
            },{
                name: 'NOTIFY_URL',
                sortable: false,
                editable: true,
                editrules: {
                    required: true,
                },
            }, {
                name: 'APPID',
                width: 100,
                sortable: false,
                editable: true,
                editrules: {
                    required: true
                }
            }, {
                name: 'MCH_ID',
                width: 100,
                sortable: false,
                editable: true
            }],
            caption: "{{$label2}}",
            editurl: "/config/wechat/edit",
        };

    jqGrid(data, true, true, true);
});

</script>
@endsection